using System;
using System.Data;
using System.Configuration;
using System.Collections.Generic;

namespace Instedd.Labs.Forms.Library
{
    /// <summary>
    /// Summary description for SurveyFieldsDescriptorProvider
    /// </summary>
    internal static class SurveyFieldDescriptorProvider
    {
        static List<SurveyFieldDescriptor> descriptors;

        static SurveyFieldDescriptorProvider()
        {
            descriptors = new List<SurveyFieldDescriptor>(new SurveyFieldDescriptor[] 
        {
            new SurveyFieldDescriptor("id"),
            new SurveyFieldDescriptor("enteredBy"),
            new SurveyFieldDescriptor("enteredOn", DbType.DateTime),
            new SurveyFieldDescriptor("latitude", DbType.Decimal),
            new SurveyFieldDescriptor("longitude", DbType.Decimal),
            new SurveyFieldDescriptor("firstName"),
            new SurveyFieldDescriptor("lastName"),
            new SurveyFieldDescriptor("streetAddress"),
            new SurveyFieldDescriptor("city"),
            new SurveyFieldDescriptor("state"),
            new SurveyFieldDescriptor("postalCode"),
            new SurveyFieldDescriptor("email"),
            new SurveyFieldDescriptor("totalOccupants", DbType.Int32), 
            new SurveyFieldDescriptor("attendedConcert", DbType.Int32),
            new SurveyFieldDescriptor("phone1"),
            new SurveyFieldDescriptor("attendeeContact", DbType.Int32),
            new SurveyFieldDescriptor("timeOfOnset", DbType.DateTime),
            new SurveyFieldDescriptor("symptomsPresent", DbType.Int32),
            new SurveyFieldDescriptor("deceased", DbType.Int32),
            new SurveyFieldDescriptor("under9years", DbType.Int32),
            new SurveyFieldDescriptor("pregnant", DbType.Int32),
            new SurveyFieldDescriptor("allergicDoxy", DbType.Int32),
            new SurveyFieldDescriptor("ciproDistributed", DbType.Int32),
            new SurveyFieldDescriptor("doxyDistributed", DbType.Int32),
            new SurveyFieldDescriptor("comments"),
            new SurveyFieldDescriptor("receivedIvTreatment", DbType.Int32),
            new SurveyFieldDescriptor("recovered", DbType.Int32),
            new SurveyFieldDescriptor("followUpComments"),
            new SurveyFieldDescriptor("followUpEnteredOn", DbType.DateTime),
            new SurveyFieldDescriptor("doxyciproAllergy", DbType.Int32)
        });
        }

        public static List<SurveyFieldDescriptor> SurveyDescriptors
        {
            get { return descriptors; }
        }
    }
}